#ifndef VERSION_H_
#define VERSION_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "evconnsvrd.h"

#define VERSION_MAJOR 0
#define VERSION_MINOR 0
#define VERSION_BUILD 1

static MAYBE_UNUSED const char* evconn_version_string()
{
	static char version[16];
	snprintf(version, sizeof(version), "%d.%d.%d\n", 
		VERSION_MAJOR, 
		VERSION_MINOR,
		VERSION_BUILD);
	return version;
}

static MAYBE_UNUSED int32_t evconn_version()
{
	int32_t version = 0;
	version = (VERSION_MAJOR << 24) |  (VERSION_MINOR << 16) | VERSION_BUILD;
	return version;
}


#ifdef __cplusplus
}
#endif

#endif // VERSION_H_


